//
//  LXStatusRetweetView.swift
//  weibo
//
//  Created by 罗心 on 16/6/29.
//  Copyright © 2016年 罗心. All rights reserved.
//

import UIKit

class LXStatusRetweetView: UIView {
    
    var status: LXStatus?{
        didSet{
            
            contentLabel.text = status?.retweeted_status?.text
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func setupUI(){
        addSubview(contentLabel)
        contentLabel.snp_makeConstraints { (make) in
            make.leading.equalTo(self).offset(10)
            make.top.equalTo(self).offset(10)
        }
        
        self.snp_makeConstraints { (make) in
            make.bottom.equalTo(contentLabel).offset(10)
        }
    
    }
    
    //懒加载contentLabel
    private lazy var contentLabel: UILabel = UILabel(textColor: UIColor.blackColor(), textFont: 15, maxWidth: ScreenW - 20)

}
